#include <stdio.h>
#include <mysql.h>

MYSQL conn;

conn dbconnection(){

conn=mysql_init(NULL);
   char *user = "root";
   char *password = "password"; 
   char *server = "localhost";
   char *database = "privacy";

   if (!mysql_real_connect(conn,server,
         user, password, database, 0, NULL, 0)) {
      printf("%s\n", mysql_error(conn));
      exit(1);
   }

retrun conn;
}
